package com.example.designpattern.factory.abstractFactory;

import com.example.designpattern.factory.factory.Mouse;

public class AbstractFactoryTest {
    public static void main(String[] args) {
        AbstractFactory razerFactory=new RazerFactory();
        Mouse razerMouse = razerFactory.createMouse();
        Keyboard razerKeyboard = razerFactory.createKeyboard();
        razerMouse.printName();
        razerKeyboard.printName();

        AbstractFactory logicFactory = new LogicFactory();
        Mouse logicMouse = logicFactory.createMouse();
        Keyboard logicKeyboard = logicFactory.createKeyboard();
        logicMouse.printName();
        logicKeyboard.printName();
    }
}
